package com.dongdongshop.mapper;

import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsExample;
import java.util.List;

import com.dongdongshop.pojo.TbGoodsVo;
import com.dongdongshop.util.PageBean;
import org.apache.ibatis.annotations.Param;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);

    List<TbGoodsVo> getinfo(@Param("b")PageBean<TbGoodsVo> b,@Param("sname")String sname);

    List<TbGoodsVo> getCount(@Param("sname") String sname);

    Integer deleteAll(@Param("ids") Long[] ids);

    Integer getSuccess(@Param("ids")Long[] ids);

    Integer getBack(@Param("ids")Long[] ids);

    List<TbGoodsVo> getinfoSeller(@Param("b") PageBean<TbGoodsVo> b, @Param("sname") String sname, @Param("status") String status,@Param("sellerId") String sellerId);

    List<TbGoodsVo> getCountSeller(@Param("sname") String sname, @Param("status") String status,@Param("sellerId") String sellerId);

    Integer toGo(@Param("ids")Long[] ids);

    TbGoodsVo getItemName(Long goodsId);
}